package org.goyo.main.domain.entity.report;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import org.goyo.main.domain.entity.base.Material;
import org.hibernate.annotations.GenericGenerator;
@Entity
public class InventoryReport {
	@Id
	@GenericGenerator(name = "generator", strategy = "org.hibernate.id.UUIDGenerator")
	@GeneratedValue(generator = "generator")
	private String uuid;
	/**
	 * 物料
	 */
	@ManyToOne
	@JoinColumn(name="materialId")
	private Material material;
	/**
	 * 入库数量
	 */
	@Column(name="inQty")
	private double inQty = 0;
	/**
	 * 出库数量
	 */
	@Column(name="outQty")
	private double outQty = 0;
	
	/**
	 * 盘点处理数量
	 */
	@Column(name="checkQty")
	private double checkQty = 0;

	public String getUuid() {
		return uuid;
	}
	public void setUuid(String uuid) {
		this.uuid = uuid;
	}
	public Material getMaterial() {
		return material;
	}
	public void setMaterial(Material material) {
		this.material = material;
	}
	public double getInQty() {
		return inQty;
	}
	public void setInQty(double inQty) {
		this.inQty = inQty;
	}
	public double getOutQty() {
		return outQty;
	}
	public void setOutQty(double outQty) {
		this.outQty = outQty;
	}
	public double getCheckQty() {
		return checkQty;
	}
	public void setCheckQty(double checkQty) {
		this.checkQty = checkQty;
	}
	
	
}
